// 导入service对象
import service from '../../utils/request'

// 一个请求封装成一个函数导出
export function user_list(payload = {}) {
    return service.get('/api/user', { params: payload })
}
// 删除
export function user_delete(payload = {}) {
    return service.delete('/api/user/' + payload.id)
}
// 修改
export function user_update(payload = {}) {
    let { id, ...date } = payload
    return service.patch('/api/user/' + id, date)
}
// 新增
export function user_add(payload = {}) {
    return service.post('/api/user/', payload)
}

// 消息列表
export function index_hydnews(payload = {}) {
    return service.get('/api/hydnews', { params: payload })
}
// 审核概况
export function index_hyd_Approved_quantity(payload = {}) {
    return service.get('/api/hyd_Approved_quantity', { params: payload })
}